package com.hskn.hss.module.storageDetail.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.planDetail.entity.TlPlanDetail;
import com.hskn.hss.module.storageDetail.entity.TlStorageDetail;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-07
 */
public interface ITlStorageDetailService extends IService<TlStorageDetail> {
    AjaxResult insert(JSONObject params) throws HssException;

    String updateadd(String centerid, String calcFunc, List<TlPlanDetail> tlPlanDetailList) throws HssException;

    AjaxResult update(JSONObject params) throws HssException;

    List<TlStorageDetail> getList(String storageid) throws HssException;

    TlStorageDetail getDetailById(String id) throws HssException;

    AjaxResult deleteByid(String id) throws HssException;
}
